package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Contact;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("contactMapper")
public interface ContactMapper {
    public List<Contact> selectAllContact();

    public List<Contact> selectContactByCustomer(Integer customerId);

    public List<Contact> selectContactByCustomerName(String customerName);

    public List<Contact> selectContactByContactType(Integer contactType);

    public List<Contact> selectContactBySearchValue(String searchValue);

    public List<Contact> selectContactByContactName(String contactName);

}
